from multiprocessing import Process, Array, Value
import time

result = Array("i", 100)

class Response:
    status_code = 200


def sim_request(index, result):
    response = Response()
    time.sleep(0.2)
    print(f"current resonse: {response.status_code}")
    print(f"result id: {id(result)}")
    result[index] = response.status_code


if __name__ == "__main__":
    p_array = []
    for index in range(100):
        p = Process(target=sim_request, args=(index, result))
        p.start()
        p_array.append(p)

    [p.join() for p in p_array]
    print("done!")
    for item in result:
        print(item)